package com.sk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author smith
 * @since 2025-05-27
 */
public class Equipment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "equipment_id", type = IdType.AUTO)
    private Integer equipmentId;

    private String equipmentName;

    private Float equipmentPrice;

    private String equipmentType;

    /**
     * 道具类型（步枪，手枪等）
     */
    private Integer typeId;

    /**
     * 库存数量
     */
    private Integer stock;

    /**
     * 稀有度（蓝，紫，粉，红等）
     */
    private String rarity;

    /**
     * 磨损度（崭新出厂，略有磨损）
     */
    private String exterior;

    private Integer status;

    /**
     * 装备图片
     */
    private String equipmentImage;

    public LocalDateTime createTime;


    private Integer userId;

    public Integer getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Integer equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public Float getEquipmentPrice() {
        return equipmentPrice;
    }

    public void setEquipmentPrice(Float equipmentPrice) {
        this.equipmentPrice = equipmentPrice;
    }

    public String getEquipmentType() {
        return equipmentType;
    }

    public void setEquipmentType(String equipmentType) {
        this.equipmentType = equipmentType;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getRarity() {
        return rarity;
    }

    public void setRarity(String rarity) {
        this.rarity = rarity;
    }

    public String getExterior() {
        return exterior;
    }

    public void setExterior(String exterior) {
        this.exterior = exterior;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getEquipmentImage() {
        return equipmentImage;
    }

    public void setEquipmentImage(String equipmentImage) {
        this.equipmentImage = equipmentImage;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Equipment{" +
                "equipmentId=" + equipmentId +
                ", equipmentName=" + equipmentName +
                ", equipmentPrice=" + equipmentPrice +
                ", equipmentType=" + equipmentType +
                ", typeId=" + typeId +
                ", stock=" + stock +
                ", rarity=" + rarity +
                ", exterior=" + exterior +
                ", status=" + status +
                ", equipmentImage=" + equipmentImage +
                ", createTime=" + createTime +
                ", userId=" + userId +
                "}";
    }
}
